<%@page import="java.util.Date"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<head>


</head>
<body>
	<div class="content">
		<!--banner-->
		<div class="content-banner">
			<ul class="bxslider">
				<img src="resources/images/banner1.png" />
				<img src="resources/images/banner2.png" />
				<img src="resources/images/banner3.png" />
				<img src="resources/images/banner4.png" />
			</ul>
		</div>
		<!--main content-->
		<div class="content-main">
			<div class="content-main-block">
				<div class="title">
					<p>SẢN PHẨM GIẢM GIÁ</p>
				</div>

				<c:forEach var="detail" items="${productDiscount}">
					<div class="item-main-block">
						<div class="icon">SELL</div> 
						<a href="detail.html?id=${detail.productDetailId}"
							style="text-decoration: none"> <img
							src="${detail.image.imageUrl}" />
							<div class="items-details">
								<div class="item-name">${detail.getName()}</div>
								<div class="item-price-old">
									<fmt:formatNumber type="number" maxFractionDigits="0"
										value="${detail.oldPrice}" />
									VND
								</div>
								<div class="item-price">
									<fmt:formatNumber type="number" maxFractionDigits="0"
										value="${detail.price}" />
									VND
								</div>
							</div>
						</a>
						<a href="test"> ${cart.cartDetails.size()} </a>
					</div>
				</c:forEach>
			</div>


			<div class="content-main-block">
				<div class="title">
					<p>SẢN PHẨM MỚI</p>
				</div>

				<c:forEach var="detail" items="${productNew}">
					<div class="item-main-block">
						<div class="icon">NEW</div>
						<a href="detail.html?id=${detail.productDetailId}"
							style="text-decoration: none"> <img
							src="${detail.image.imageUrl}" />
							<div class="items-details">
								<div class="item-name">${detail.product.productName}</div>

								<div class="item-price">
									<fmt:formatNumber type="number" maxFractionDigits="0"
										value="${detail.price}" />
									VND
								</div>
							</div>
						</a>
					</div>
				</c:forEach>
			</div>
		</div>
	</div>
	<!-- CONTENT : START -->

</body>